yuewen_login();
function yuewen_login(){
    var queryParams = getQueryParams();
    console.log(queryParams);
    queryParams.cid = cid;
    queryParams.gid = gid;
    faXingLogin(queryParams);
}

function getQueryParams() {
    var urlParams = new URLSearchParams(window.location.search);
    var params = {};
    for (var param of urlParams.entries()) {
        params[param[0]] = param[1];
    }
    return params;
}

function yuewen_creterole(data){
    $.post(feihuo_creteroleUlr,data,function(info) {
        console.log("角色结果:",info);
    });
}


function yuewen_pay(data){
    console.log("阅文支付数据：",data);
    var message={'action_yw':'pay','data':data};
    window.parent.postMessage(message,'*');
}
